import { ResultWrapper } from "./typing";

export function wrapResult<T>(code : number, message: string, data:T = null) {
	return {
		code,
		message,
		data
	} as ResultWrapper<T>
}